﻿using Ken_WPF_UI.View.otherUI.pages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ken_WPF_UI.View.otherUI
{
    /// <summary>
    /// WechatUserSet.xaml 的交互逻辑
    /// </summary>
    public partial class WechatUserSetWindow : Window
    {
        public WechatUserSetWindow()
        {
            InitializeComponent();
        }

        private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                //ListBox listBox = e.OriginalSource as ListBox;
                //object selectedItem = listBox.SelectedItem;

                ListBoxItem listBoxItem = e.AddedItems[0] as ListBoxItem;

                if ("账号设置".Equals(listBoxItem.Content))
                {
                    WechatUserSetPage1 userSetPage1 = new WechatUserSetPage1();
                    this.rightContent.Content = userSetPage1;
                    //this.rightContent.Children.Add(userSetPage1.GetMainGrid());
                }

                

            }
            catch (Exception ex)
            {

                throw;
            }
        }


    }
}
